<%@ page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <title>员工详细信息</title>
    <%@include file="/WEB-INF/jsp/header.jsp"%>
    <style>
        td{
            height: 40px;
        }
        #tou{
            vertical-align: top;
        }
        #top{
            vertical-align: middle;
            position: absolute;
            left: 89%;
        }
    </style>
</head>
<body>
    <div class="container-fluid">
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">医护人员详细信息展示</h3>
            </div>
            <div class="panel-body" style="" >
                <div style="height: 10px;"></div>
                <span style="">人员工号:${worker.woJubnum}</span>
                <div id="top" class="">
                    <a href="${ctx}/doc/top?perId=${perId}">上一个</a><br/>
                    <a href="${ctx}/doc/next?perId=${perId}">下一个</a>
                </div>
                <table border="3"  style="width: 90%;">

                    <tr class="row">
                        <td class="col-md-2 text-center" rowspan="13">基本信息</td>
                        <td class="col-md-2">姓名:</td>
                        <td class="col-md-4 ">${worker.woName}</td>
                        <td class="col-md-2 text-center" rowspan="13">个人说明</td>
                        <td class="col-md-3" style="display: inline-block;width: 500px;border-bottom: 0px" rowspan="13" align="center" valign="middle">
                            <div id="tou" class="" style="float: right" >
                                <img src="${ctx}/res/images/${worker.woCeavatar}" class="img-circle" style="width: 150px;height: 150px;border: solid #c0c0c0"  alt="">
                            </div>
                            <div class="pull-left" style="padding-top: 10px;">
                                &nbsp;&nbsp;&nbsp;&nbsp;${worker.woPerExplain}
                            </div>
                        </td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">性别:</td>
                        <td class="col-md-4 ">${worker.woSex==0?"男":"女"}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">角色:</td>
                        <td class="col-md-4 " id="roleName">${worker.role.roleName}</td>

                    </tr>
                    <tr class="row">
                        <td class="col-md-2">联系方式:</td>
                        <td class="col-md-4 ">${worker.woPhone}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">工作年限:</td>
                        <td class="col-md-4 ">${worker.workLife}年</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">身份证:</td>
                        <td class="col-md-4 ">${worker.woIdentityCard}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">学历:</td>
                        <td class="col-md-4 ">${worker.woEducation}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">出生日期:</td>
                        <fmt:formatDate value="${worker.woBirthday}" pattern="yyyy-MM-dd" var="d"></fmt:formatDate>
                        <td class="col-md-4 ">${d}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">民族:</td>
                        <td class="col-md-4 ">${worker.woNation}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">国籍:</td>
                        <td class="col-md-4 ">${worker.woNationality}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">婚姻状况:</td>
                        <td class="col-md-4 ">${worker.woMaritalstate==0?"已婚":"未婚"}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">户口住址:</td>
                        <td class="col-md-4 ">${worker.woResidence}</td>
                    </tr>
                    <tr class="row">
                        <td class="col-md-2">现住址:</td>
                        <td class="col-md-4 ">${worker.woAddress}</td>
                    </tr>
                </table>
                <div style="height: 20px;"></div>
            </div>
        </div>
    </div>
    <%@include file="/WEB-INF/jsp/footer.jsp"%>
    <script>
        $(function () {
            if('${worker.role.roleName}'==''){
                $.post(ctx+"/doc/searchRoleByroleId","roleId="+'${worker.roleId}',function (app) {
                    $("#roleName").html(app.roleName)
                },'json')
            }
        })
    </script>
</body>
</html>
